package com.cdut.logistics.model.entity;

import java.util.Date;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

/**  
 * @ClassName: BaseBean  
 * @Description: TODO(这里用一句话描述这个类的作用)  
 * @author wxt.asus
 * @date 2018年1月26日 下午3:46:33    
 */
@SuppressWarnings("unchecked")
public class BaseBean<M extends BaseBean<M>> extends Model<M> implements IBean {
	private static final long serialVersionUID = 1L;
	public M setCreated(Date created) {
		set("created", created);
		return (M)this;
	}
	
	public Date getCreated() {
		return getDate("created");
	}

	public M setUpdated(Date updated) {
		set("updated", updated);
		return (M)this;
	}
	
	public Date getUpdated() {
		return getDate("updated");
	}
	
	public M setActive(java.lang.String active) {
		set("active", active);
		return (M)this;
	}
	
	public java.lang.Integer getActive() {
		return getInt("active");
	}
	
	public M setIs_use(java.lang.String is_use) {
		set("is_use", is_use);
		return (M)this;
	}
	
	public java.lang.Integer getIs_use() {
		return getInt("is_use");
	}
}
